<?php include(BASEPATH . 'views/messages.php'); ?>
<form class="frm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="hidden" name="mode" id="mode" value="check" />	
        <fieldset>
		<legend> Add a New Domain</legend>		
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
                    
		<tr>
		    <td align="left" width="20%">
			    <label for="d_name">Domain name (ex: www.abc.com)</label>
		    </td>
		    <td align="left">
			    <input type="text" name="d_name" id="d_name" value="" class="inp" />
		    </td>		    
		</tr>
		<tr>
			<td colspan="2" align="left">
			    <input type="submit" name="btn_sub" id="btn_sub" value="" title="Add domain" class="btnd add_btn" />
		    </td>
		</tr>
		<tr>
		    <td colspan="2">&nbsp;</td>
		</tr>
                    
                </table>
        </fieldset>			
</form>

<?php if(isset($actions['congmsg']) && !empty($actions['congmsg']) && !empty($actions['web_code'])){ 
include(BASEPATH . 'views/webcode.php');
} ?>